package com.cmeizu.webconfigdemo.controller;

import com.cmeizu.webconfigdemo.aspect.Login;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author cmeizu
 * @date 2022/1/14 11:48 PM
 */
@RequestMapping("/api/test")
@RestController
@Api(tags = {"测试接口"})
public class HelloWordController {

    @GetMapping("/hello")
    @ApiOperation(value = "hello word接口")
    @Login
    public String test() {
        return "hello word!";
    }
}
